package cn.kgc.ebookdemo02.service.impl;

import cn.kgc.ebookdemo02.mapper.EbookCategoryMapper;
import cn.kgc.ebookdemo02.pojo.EbookCategory;
import cn.kgc.ebookdemo02.service.EbookCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 2020-05-19 10:34
 */
@Service
public class EbookCategoryServiceImpl implements EbookCategoryService {


    @Resource
    EbookCategoryMapper ebookCategoryMapper;

    @Override
    public List<EbookCategory> selectAll() {
        List<EbookCategory> categoryList=ebookCategoryMapper.selectByExample(null);
        return categoryList;
    }
}
